package com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;

/**
 * 修改职员辅助核算DTO
 */
@Getter
@Setter
public class UpdateAssistCalculateEmployeeDTO extends UpdateAssistCalculateBaseDTO implements Serializable {

    @ApiModelProperty(value = "性别")
    @Range(min = 0, max = 2)
    private Integer sex;

    @ApiModelProperty(value = "部门编码")
    private String departmentCode;

    @ApiModelProperty(value = "部门名称")
    private String departmentName;

    @ApiModelProperty(value = "职务")
    @Size(max = 50)
    private String position;

    @ApiModelProperty(value = "岗位")
    @Size(max = 50)
    private String job;

    @ApiModelProperty(value = "手机")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式有误")
    private String phone;

    @ApiModelProperty(value = "出生日期")
    private Date birthday;

    @ApiModelProperty(value = "入职日期")
    private Date startDate;

    @ApiModelProperty(value = "离职日期")
    private Date departureDate;
}
